package com.huali.pattern.factory.absfactory.pizzastore.pizza;

import com.huali.pattern.factory.factorymethod.pizzastore.order.BJOrderPizza;
import com.huali.pattern.factory.factorymethod.pizzastore.order.LDOrderPizza;

public class Main {
    public static void main(String[] args) {
        String loc = "bj";
        if (loc.equals("bj")) {
            //创建北京口味的各种Pizza
            new BJCheesePizza();
        } else {
            //创建伦敦口味的各种Pizza
            new LDOrderPizza();
        }
    }
}
